import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from './router' 
import * as ElementPlusIcons from '@element-plus/icons-vue'// 全量引入图标

import '@fortawesome/fontawesome-free/css/all.css'

import App from './App.vue'
import './style.css'


const app = createApp(App)
app.use(createPinia())
app.use(router)
app.use(ElementPlus)
// 全局注册所有图标
for (const [name, component] of Object.entries(ElementPlusIcons)) {
  app.component(name, component)
}

app.mount('#app')

